﻿<%@ Page Language="C#" MasterPageFile="~/WebSite/Default.master" AutoEventWireup="true" CodeFile="Newslist.aspx.cs" Inherits="WebSite_Newslist" Title="新闻列表" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <style type="text/css">
        .NewsList
        {
            margin:20px auto 15px auto;
            padding:5px;
            width:500px;
            overflow:visible;
        }
        .NewsTop
        {
            background-image:url(../images/table2.png);
            background-repeat:no-repeat;
            margin:0px auto;
            height:40px;
            width:500px;
       	}
       	.NewsTop h1
       	{
       		background-image:url(../images/iconnew.gif);
       		background-repeat:no-repeat;
       		float:left;
       		width:200px;
       		height:50px;
       		margin:-5px auto 5px 20px;
       		font-size:20px;
       		padding-top:15px;
       		padding-left:40px;
       		font-weight:bold;
       	}
       	.AllNewsList
       	{
       		margin:5px auto;
       		font-size:15px;
       		font-family:华文中宋;
       		font-variant:normal;
       		width:500px;
       		padding:0px;
       	}
       	.AllNewsList a 
       	{
       		font-family: 微软雅黑;
	        font-size: 15px;
	        font-style: normal;
	        color: Black;
	        margin-left:5px;
	        text-decoration: none;
       	}
    </style>
    <div class="NewsList">
        <div class="NewsTop">
            <h1>站内新闻</h1>
        </div>
        <div class="AllNewsList">
            <asp:DataList ID="NewsDataList" runat="server" DataKeyField="Id" >
                <ItemTemplate>
                    <asp:Label ID="PostTimeLabel" runat="server" CssClass="ListItem" Text='<%#Eval("ItemDate","[{0}]")%>'/>
                    <a href='<%# Eval("Id","News.aspx?id={0}") %>'><%# Eval("Title") %></a>
                    <div class="thumbnail"></div>
                </ItemTemplate>
            </asp:DataList>
            <asp:Button ID="PreviousPageBtn" runat="server" Text="上一页" 
                onclick="PreviousPageBtn_Click" />
            <asp:Button ID="NextPageBtn" runat="server" Text="下一页" 
                onclick="NextPageBtn_Click" />
        </div>
    </div>
</asp:Content>

